<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>安装包</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="$request.contextPath/res/css/hitao.css">
<body>
<!-- header -->
<div class="container header">
    <div>
        <h1 class="pull-left">嗨淘</h1>
        <ul class="pull-right breadcrumb">
            <li>包名：$newpkg.filename</li>
            <li>时间：$newpkg.timeDisplay</li>
        </ul>
    </div>
</div>
<!-- end header -->

<!-- content -->
<div class="container content">
    <div class="icon-contain">
        <img class="icon" src="$request.contextPath/res/images/hitao-icon.png">
    </div>
    <div class="install">
        <div class="install-tips" style="display: none;">
            <p>正在安装，请查看桌面...</p>
        </div>
        <a id="newpkginstall" class="install-btn" href = $newpkg.plistFilepath>
            <i class="glyphicon glyphicon-download-alt"></i>  点击安装</a>
    </div>
    <div class="">
        <span class="install-plat">$des</span>
    </div>

    <hr class="devider" style="margin: 30px 0;    border-top: 2px dotted #eee;">

    <div class="qrcode-container">
        或者用手机扫描下面的二维码安装
        <div style="margin: 10px auto;height: 256px;width:256px;">
            <div id="qrcode"></div>
            <!-- <img src="https://o1wjx1evz.qnssl.com/app/qrcode/ewyt" style="width:156px; height:156px;"> -->
        </div>
    </div>
    <div>

        <hr class="devider" style="margin: 30px 0;    border-top: 2px dotted #eee;">

        <table class="table table-bordered">
            <thead>
            <p class="history-table-title">
                历史列表
            </p>
            <tr>
                <th class="table-col-1">安装</th>
                <th class="table-col-2">包名/时间</th>
            </tr>
            </thead>
            <tbody>
            #foreach ($pkg in ${package})
            <tr class="active">
                <td><a class="downlink table-install-btn" href="$pkg.plistFilepath">点击安装</a></td>
                <td>
                    <p>$pkg.filename</p>
                    <p>$pkg.timeDisplay</p>
                </td>
            </tr>
            #end
            </tbody>
        </table>
    </div>
</div>
<!-- end content -->

<!-- footer -->
<div class="copyright">
    <div class="container">
        <div class="row">
            <div>
                本页面由 <a href="http://hitao.com" target="__blank">嗨淘</a> 提供｜<a class="footer_faq" href="http://wiki.hitao.top/pages/viewpage.action?pageId=6298330">安装wiki</a>
            </div>
        </div><!--/row-fluid-->
    </div><!--/container-->
</div>
<!-- end foot -->
</body>

<script type="text/javascript"  src="$request.contextPath/res/js/qrcode.min.js"></script>
<script type="text/javascript"  src="$request.contextPath/res/js/qrcode.js"></script>

</html>